#include "Mutex.h"

Mutex::Mutex(){
	pthread_mutex_init(&this->mutex, NULL);
}

Mutex::~Mutex(){
	pthread_mutex_destroy(&this->mutex);
}

int Mutex::lock(){
	return pthread_mutex_lock(&this->mutex);
}

int Mutex::unlock(){
	return pthread_mutex_unlock(&this->mutex);
}
